{% extends data.outerLayout %}
{% block title %}{{ data.page.title }}{% endblock %}

{% block main %}
  {% for piece in data.pieces %}
    <h2><a href="{{ piece._url }}">{{ piece.title }}</a></h2>
  {% endfor %}
  {% import '@apostrophecms/pager:macros.html' as pager with context %}
  {{ pager.render({
    page: data.currentPage,
    total: data.totalPages
  }, data.url) }}
{% endblock %}

